package com.asset.dispoal.logger;

import tech.mhuang.pacebox.springboot.core.local.GlobalHeaderThreadLocal;

/**
 * 默认用户获取
 *
 * @author mhuang
 * @since 1.0.0
 */
public class DefaultUserGetManager implements IUserGetManager {

    @Override
    public String getUserId() {
        //此处通过全局方式获取userId
        //此处应用的程序需要接入auth-common
        return GlobalHeaderThreadLocal.get().getUserId();
    }
}
